﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using CSharp.Libs.Koc;

namespace CSharp.Libs.WPF.UserControls
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class AllianceMemberList : UserControl
    {
        #region declarations
        private Kernel _KRNL = null;
        private KocAllianceMemberListViewModel _AMLVM = null;
        #endregion



        #region constructor destructor
        public AllianceMemberList()
        {
            InitializeComponent();
        }
        #endregion



        #region event handling
        #endregion



        #region private functions
        private void _Initialize(
            Kernel KRNL,
            int AllianceId)
        {
            _KRNL = KRNL;
            _AMLVM = new KocAllianceMemberListViewModel(_KRNL, AllianceId);
            DataContext = _AMLVM;
        }
        #endregion



        #region interface
        #region properties
        public KocAllianceMemberListViewModel AMVVM
        {
            get
            {
                return _AMLVM;
            }
        }
        #endregion

        #region methods
        public void Initialize(
            Kernel KRNL,
            int AllianceId)
        {
            _Initialize(KRNL, AllianceId);
        }
        #endregion
        #endregion
    }
}
